<template>
  <div id="app">
    <!-- <login></login> -->
    <keep-alive> 
        <router-view :key="key"></router-view>
    </keep-alive>
  </div>
</template>

<script>
import login from './components/login'
export default {
  name: 'App',
  components:{
    login
  },
  computed:{
    key(){
      return this.$route.path + Math.random();
    }
  }
}
</script>

<style scoped>
  
</style>
